package com.video_study.service;

import com.video_study.pojo.LookRecord;
import com.video_study.pojo.Users;
import com.video_study.result.ResponseData;
import org.springframework.http.HttpRequest;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;

public interface UserService {
    ResponseData login(String username, String password);

    ResponseData getUsers(Integer page, Integer limit,String id,String username,String phone);

    ResponseData upImg(MultipartFile file, HttpServletRequest httpRequest);

    ResponseData addUser(Users users, HttpServletRequest request);

    ResponseData editUser(Users users);

    ResponseData deleteById(String[] ids);

    ResponseData getReserves(String id);

    ResponseData insertRecords(LookRecord lookRecord);

    ResponseData getRecords(String id);

    ResponseData getUserById(String id);


    ResponseData register(String id, String username, String password);

    ResponseData findpwd(Users users);
}
